﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Papeis.aspx.cs" Inherits="NUP.Papeis" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Cadastro de Papeis.
           <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="SelTodos" DeleteMethod="Deletar" InsertMethod="Salvar" UpdateMethod="Atualizar" 
            TypeName="Camadas.PapelBO" DataObjectTypeName="Camadas.PapelTO"></asp:ObjectDataSource>
    
        <br />
        
        <asp:GridView ID="GridView3" runat="server" CellPadding="4" 
            DataKeyNames="Codigo" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
            GridLines="None">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
          <br />
        <asp:FormView ID="FormView1" runat="server" CellPadding="4" 
            DataKeyNames="Codigo" DataSourceID="ObjectDataSource1" DefaultMode="Insert" 
            ForeColor="#333333">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <InsertItemTemplate>
                Código:
                <asp:TextBox ID="CodigoTextBox" runat="server" Text='<%# Bind("Codigo") %>' />
                <br />
                Descrição:
                <asp:TextBox ID="DescricaoTextBox" runat="server" 
                    Text='<%# Bind("Descricao") %>' />
                <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                    CommandName="Insert" Text="Insert" />
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" />
            </InsertItemTemplate>
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
        </asp:FormView>
    
    </div>
    </form>
</body>
</html>
